
cc.Class({
    extends: cc.Component,

    properties: {
        label_num: cc.Label
    },


    onLoad () {
        this.init()
    },

    start(){
        this.schedule(function() {
            this.num--
            this.label_num.string = this.num
            if(this.num <= 0){
                this.goGame()
            }
        }, 1);
    },

    init(){
        this.num = 5
        this.label_num.string = this.num
    },

    goGame(){
        cc.director.loadScene("Game");
    },

 

 
});
